package com.ling.sbbyyds.entity.news.table;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description: 类描述
 * @author: ling
 * @date: 2023年02月19日
 */
@Data
@Accessors(chain = true)
@Table(name = "sbb_news_user_chat")
public class NewsUserChat {

    @Id
    @GeneratedValue(generator = "JDBC",strategy = GenerationType.AUTO)
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("聊天室ID")
    private Long chatRoomId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户在群聊中名称")
    private String userOnRoomName;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty("是否删除")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;
}
